import  HttpRequest from '../utils/HttpRequest.js';
//通过id查询基金产品信息
export function findFund(data){
	return HttpRequest("/order/fund/findfund",{data,method:""})
}
//通过id查询黄金产品信息
export function findGold(data){
	return HttpRequest("/order/gold/findGold",{data,method:""})
}
//通过id查询活期理财产品
export function findCurrent(data){
	return HttpRequest("/order/current/findCurrent",{data,method:""})
}
//通过id查询定期理财
export function findRegular(data){
	return HttpRequest("/order/regular/findRegular",{data,method:""})
}

//验证码
export function getCode(data){
	console.log(data,'http');
	return HttpRequest("/order/code/getCodeByTel",{data,method:"post"})
}
//获取全部订单信息
export function getAll(data){
	return HttpRequest("/order/allOrder/findCurrent",{data,method:""})
}
//购买定期
export function buyRegular(data){
	return HttpRequest("/order/regular/buyRegular",{data,method:"post"})
}
// 购买黄金
export function buyGold(data){
	return HttpRequest("/order/gold/buyGold",{data,method:"post"})
}
// 购买活期
export function buyCurrent(data){
	return HttpRequest("/order/current/buyCurrent",{data,method:"post"})
}